<?php
/***
 * 描述：公共方法
 * @category		Action		
 * @package			Index			
 * @subpackage			
 * @author			wanght <whtaok@gmail.com>
 * @since			2013-7-30
 * @version			$Id: PublicAction.class.php 5 2013-10-14 03:20:14Z whtaok@gmail.com $
 */
class PublicAction extends Action {
	/**
	 * 描述：验证码生成
	 * @access		public
	 * @author		wanght<whtaok@gmail.com>
	 * @since		2013-4-14
	 */
	public function verifyAct() {
		import("ORG.Util.Image");
        Image::buildImageVerify();
	}
	
	public function isAccountExistAct(){
		$search = array(
				'account'=>I('account')
			);
		$mod=new ShopUserModel();
		$mod->setModWhere($search);
		$detail = $mod->field('id')->find();
		if($detail){
			$this->ajaxReturn('1');
		}else{
			$this->ajaxReturn('0');
		}
	}
}

?>